package com.weds.edwx.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weds.core.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Size;

public class DineUserRoleEntity extends BaseEntity implements Serializable {
    /**
     *
     */
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private Long userSerial;

    /**
     *
     */
    @Size(max = 10)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String role;

    /**
     *
     */
    @Size(max = 40)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String glyNo;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(required = true, dataType = "string", example = "2020-04-06 14:04:00", value = "")
    private Date sj;

    private String orderFlag; //是否允许订餐

    public String getOrderFlag() {
        return orderFlag;
    }

    public void setOrderFlag(String orderFlag) {
        this.orderFlag = orderFlag;
    }

    /**
     */
    private static final long serialVersionUID = 1L;

    private String keys;

    /**
     * This method returns the value of the database column dine_user_role.user_serial
     *
     * @return the value of dine_user_role.user_serial
     */
    public Long getUserSerial() {
        return userSerial;
    }

    /**
     */
    public DineUserRoleEntity withUserSerial(Long userSerial) {
        this.setUserSerial(userSerial);
        return this;
    }

    /**
     * This method sets the value of the database column dine_user_role.user_serial
     *
     * @param userSerial the value for dine_user_role.user_serial
     */
    public void setUserSerial(Long userSerial) {
        this.userSerial = userSerial;
    }

    /**
     * This method returns the value of the database column dine_user_role.role
     *
     * @return the value of dine_user_role.role
     */
    public String getRole() {
        return role;
    }

    /**
     */
    public DineUserRoleEntity withRole(String role) {
        this.setRole(role);
        return this;
    }

    /**
     * This method sets the value of the database column dine_user_role.role
     *
     * @param role the value for dine_user_role.role
     */
    public void setRole(String role) {
        this.role = role;
    }

    /**
     * This method returns the value of the database column dine_user_role.gly_no
     *
     * @return the value of dine_user_role.gly_no
     */
    public String getGlyNo() {
        return glyNo;
    }

    /**
     */
    public DineUserRoleEntity withGlyNo(String glyNo) {
        this.setGlyNo(glyNo);
        return this;
    }

    /**
     * This method sets the value of the database column dine_user_role.gly_no
     *
     * @param glyNo the value for dine_user_role.gly_no
     */
    public void setGlyNo(String glyNo) {
        this.glyNo = glyNo;
    }

    /**
     * This method returns the value of the database column dine_user_role.sj
     *
     * @return the value of dine_user_role.sj
     */
    public Date getSj() {
        return sj;
    }

    /**
     */
    public DineUserRoleEntity withSj(Date sj) {
        this.setSj(sj);
        return this;
    }

    /**
     * This method sets the value of the database column dine_user_role.sj
     *
     * @param sj the value for dine_user_role.sj
     */
    public void setSj(Date sj) {
        this.sj = sj;
    }

    public String getKeys() {
        return keys;
    }

    public void setKeys(String keys) {
        this.keys = keys;
    }
}